/**
 * @author devin
 * @method POST @param data
 * 
 * @method GET  @param params
 * 
 * @title 获取用户手机号接口
 * @title 发送手机验证码接口
 * @title 更换手机号码接口
 */

import fetch from '@/utils/request';

/**
 * @title 注册接口（获取手机号接口）
 */
export const GetPhoneNumber = (params: any) => {
  return fetch.get('/api/user/registerMobile', { params })
}

// api/Sms/send 发送手机验证码功能
export const GetSendnumber = (params: any) => {
  // console.log('params:', params)
  return fetch.get('/api/Sms/send', { params })
}

//api/user/changeMobile 
export const PostChangeMobile = (params: any) => {
  return fetch.get('/api/user/changeMobile ', { params })
}
/**
 * @title 发送手机验证码接口
 * @param mobile [required] 手机号码
 * @param event  [required] 注册register 更换手机号码changemobile 改变密码changepwd
 * 
 */
export const GetSendMobileVerifiationCode = (params: any) => {
  return fetch.get('/api/Sms/send ', { params })
}
